import App from './App.vue'
import store from './store/index.js'
import http from './utils/http.js'

import wx from './utils/jwx.js'
Vue.prototype.$wx = wx;

// #ifndef VUE3
import Vue from 'vue'
import uView from "uview-ui";

Vue.use(uView);
// import VueTouch from 'vue-touch';
// Vue.use(VueTouch, {
//   name: 'v-touch'
// });

let mpShare = require('uview-ui/libs/mixin/mpShare.js');
Vue.mixin(mpShare)

Vue.config.productionTip = false
Vue.prototype.$http = http
Vue.prototype.$store = store

App.mpType = 'app'
const app = new Vue({
	store,
	...App
})
app.$mount()
// #endif

// #ifdef VUE3
import {
	createSSRApp
} from 'vue'
export function createApp() {
	const app = createSSRApp(App)
	return {
		app,
	}
}
// #endif
